package cn.itcast.Dao;

import cn.itcast.domain.User;

import java.util.List;

/**
 * @author wgq
 * @date 2019-09-20 18:37
 */
public interface UserDao {
    User findByUsernameAndPassWord(String username, String password);

    List<User> findAll();

    Long save(User user);

    void saveUserRoleRel(Long id, Long[] roleIds);

    void delUserRoleRel(Long userId);

    void delUser(Long userId);

    User findById(Long userId);

    void updateUser(User user);
}
